#include "operation.h"
#include "../mainwindow.h"

Operation::Operation(QObject *parent)
    :  m_strDeviceID(QStringLiteral("-1")),
    m_pParent(parent)
{
    connect(this,&Operation::sendMessage,MainWindow::instance(),&MainWindow::on_descriptionReceiveMessage);
}

Operation* Operation::clone(Operation* pOperation){
    m_strDeviceID = pOperation->GetDeviceId();
    m_pDevice = pOperation->GetDevice();
    return this;
}

QString Operation::strDeviceID() const
{
    return m_strDeviceID;
}

void Operation::setStrDeviceID(const QString &newStrDeviceID)
{
    m_strDeviceID = newStrDeviceID;
}

void run(){

}
